<!DOCTYPE html>

<html lang="en">

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title> hello world </title>
    <script src="https://unpkg.com/vue@next"></script>
</head>

<body>
    <h3>Notes: orgintal data programe</h3>
    <div id="root"></div>
</body>

<script>
    Vue.createApp({
        data() {
            return {
                content: 'hello world',
                checked: true,
            }
        },
        methods: {
            btnClick() {
                this.content = this.content.split('').reverse().join('');
            }
        },
        template: `
            <div>
                {{content}}
                <button v-on:click="btnClick">Reverse</button>
                <h4 v-show="checked">SHOW ME!</h4>
                <p>
                    <input type="checkbox" v-model="checked" >show</input>
                </p>
            </div>
            `
    }).mount('#root');
</script>

</html>